<?php
namespace Apps\Backend\Models;
use Phalcon\Mvc\Model;
use Phalcon\Mvc\Model\Validator\Uniqueness as Uniqueness;
class Users extends Model
{
    public $id;
    public $name = 0;
    public $username = 0;
    public $email = null;
    public $password = 0;
    public $md5 = 0;
    public $created = 0;
    public $status = 0;
    public $address = 0;
    public $phone = 0;
    public $ip = 0;
    public $modified = 0;
    public $visited_date = 0;
    public $login_attempts = 0;
    public $total_product = 0;

    public function initialize()
    { //ham khoi tao chỉ gọi 1 lần trong thời gian yêu cầu
        $this->setSource(ALIAS . "users");
    }

}
